Golang - Hello World!


不免俗的第一篇當然就是要來 Run Hello World 啊。


main.go

package main

import "fmt"

func main() {
    fmt.Println("Hello World!")
}

直接 Run

$ go run main.go

Build 執行檔

$ go build main.go
$ ./main
#golang #GO







你可能感興趣的文章

[SQL] Want to declare a string array variable? Declare a table variable instead.

[SQL] Want to declare a string array variable? Declare a table variable instead.

在 Windows 內移除無用的 Identifier

在 Windows 內移除無用的 Identifier

第七週、瀏覽器上的 JS

第七週、瀏覽器上的 JS






留言討論